/*
 * Created on 24-jul-2005
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package org.mushroomdb.engine.costmodel.metrics;

public class Metric {
	public static final Metric MIN_VALUE = new Metric("Minimum Value", "m");
	public static final Metric MAX_VALUE = new Metric("Maximum Value", "M");
	public static final Metric VALUE_IMAGE_COUNT = new Metric("Value Image Count", "I");
	public static final Metric REGISTER_COUNT = new Metric("Register Count", "T");
	public static final Metric PAGE_COUNT = new Metric("Page Count", "P");
	public static final Metric BLOCK_COUNT = new Metric("Block Count", "B");
	public static final Metric JOIN_FACTOR = new Metric("Join Factor", "J");
	public static final Metric SELECTIVITY_FACTOR = new Metric("Selectivity Factor", "S");
	
	private String name;
	private String unit;
	
	private Metric(String name, String unit) {
		this.name = name;
		this.unit = unit;
	}
	
	public String getName() {
		return this.name;
	}
	
	public String getUnit() {
		return this.unit;
	}
	
	public String toString() {
		return this.getUnit();
	}
}
